package com.sl.biz.modular.restapi.dao.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sl.biz.modular.restapi.dao.entity.ApiVersionConfigDO;

import java.util.List;

public interface ApiVersionConfigDaoService extends IService<ApiVersionConfigDO> {


    List<ApiVersionConfigDO> queryByApiConfigId(String apiConfigId);

    Boolean removeByApiIdAndVersion(String apiId, String apiVersion);

    Boolean removeByApiId(String apiId);

    Boolean setLatestFlag(String id, Boolean latestFlag);

    Boolean setLatestFlagByApiId(String apiId, boolean latestFlag);

    List<ApiVersionConfigDO> queryByApiConfigIds(List<String> ids);
}
